package com.bx.implatform.util;

import org.springframework.web.client.RestTemplate;

public abstract class BaseExternalApiService {

    protected final RestTemplate restTemplate;

    protected BaseExternalApiService(RestTemplate restTemplate) {
        this.restTemplate = restTemplate;
    }

    public abstract <T> T get(String url, Class<T> responseType, Object... uriVariables);
    public abstract <T> T post(String url, Object requestBody, Class<T> responseType);
}
